package com.youlu.campus.service.linker;

import com.youlu.campus.entity.ShortUrlConfigStatistics;
import com.youlu.campus.entity.VO.req.ShortUrlConfigStatisticsQueryVO;

import java.util.Date;
import java.util.List;

public interface ShortUrlConfigStatisticsService {
    void incr(String key);

    Long getCounter(String id);

    void create(ShortUrlConfigStatistics req);

    void incShortUrlAndAddConfigStatistics(String key,String id, Long incr);

    void shortUrlConfigStatistics(String id, Long incr);

    void incr(String id, String type, Date date, Long incr);

    List<ShortUrlConfigStatistics> list(ShortUrlConfigStatisticsQueryVO req);

    ShortUrlConfigStatistics find(String id, String type, Date date);

    /**
     * 获取长链接
     *
     * @param longUrl
     * @param type
     * @return
     */
    String getLongUrl(String longUrl, String type);


}
